/// 商店状态管理 - Store State Management
/// 
/// 管理商店页面的所有状态变量
/// Manages all state variables for store page
class StoreState {
  /// 是否正在加载 - Whether loading
  bool isLoading;
  
  /// 错误信息 - Error message
  String? errorMessage;
  
  /// 商品分类列表 - Product categories list
  List<String> categories;
  
  /// 推荐商品列表 - Featured products list
  List<String> featured;
  
  /// 选中的分类ID - Selected category ID
  String selectedCategoryId;
  
  /// 是否正在加载商品 - Whether loading products
  bool isLoadingProducts;
  
  /// 是否正在刷新 - Whether refreshing
  bool isRefreshing;

  StoreState({
    this.isLoading = false,
    this.errorMessage,
    this.categories = const [],
    this.featured = const [
      '神秘水晶球',
      '开运手链',
      '风水摆件',
      '塔罗牌套装',
      '招财猫',
    ],
    this.selectedCategoryId = '',
    this.isLoadingProducts = false,
    this.isRefreshing = false,
  });
}